package com.sikaryofficial.backend.domain.dto.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.sikaryofficial.common.core.annotation.SqlEscapeDeserializer;
import com.sikaryofficial.common.core.web.page.PageDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;

/**
 * 产品列表请求入参
 *
 * @author qinjinyuan
 * @date 2023-10-30
 */
@Getter
@Setter
@ToString
@ApiModel(value = "产品列表请求入参", description = "产品列表请求入参")
public class ProductListReq extends PageDomain {
    private static final long serialVersionUID = 1L;
    /**
     * 产品名称
     */
    @ApiModelProperty(value = "产品名称", example = "支持左匹配")
    @JsonDeserialize(using = SqlEscapeDeserializer.class)
    private String productName;

    /**
     * 查询开始时间
     */
    @ApiModelProperty(value = "查询开始时间", example = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /**
     * 查询结束时间
     */
    @ApiModelProperty(value = "查询结束时间", example = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    @ApiModelProperty(value = "口味", example = "支持左匹配")
    @JsonDeserialize(using = SqlEscapeDeserializer.class)
    private String tasteName;

    @ApiModelProperty(value = "型号", example = "支持左匹配")
    @JsonDeserialize(using = SqlEscapeDeserializer.class)
    private String model;

    @ApiModelProperty(value = "二维码物料号", example = "支持左匹配")
    @JsonDeserialize(using = SqlEscapeDeserializer.class)
    private String qrMatlNo;
}
